﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Text.RegularExpressions;
using System.Data;
using CrawlerCore;


namespace WCrawlerLib
{
    public enum enumForumType
    {
        vBulletin = 1,
        vBulletin3x = 2,
        vBulletin4x = 3,
        phpBB = 4,
        phpBB2 = 5,
        phpBB3 = 6,
        IPB = 7,
        IPB31x = 8,
        IPB32x = 9,
        myBB = 10,
        Unknown = 11
    }

    public enum enumContentType
    {
        App = 1,
        Porn = 2,
        App_Porn=3,
        Unknown = 4
    }

    public enum enumLanguage
    {
        English = 16,
        Unknown = 66
    }

    public enum enumHost
    {
        Hotfile =10,
        Fileserve = 17,
        Filesonic = 14,
        WUpload = 15,
        FileFactory = 9,
        DepositFiles = 7,
        Oron = 13,
        Uploading = 12,
        UploadStation = 25,
        FileJungle = 29
    }

    public enum enumIcon
    {
        Multi = 16,
        NA = -1
    }

    public enum enumPost
    {
        Login = 1,
        NewThread = 2,
        EditPost = 3,
        ReplyPost = 4
    }

    public static class WGeneralClass
    {
        public static DataTable CreateSearchForumThreadDataTable()
        {
            DataTable myTable;
            // Create a new DataTable.
            myTable = new DataTable("SearchForumThread");
            myTable.Columns.Add("ThreadNum", System.Type.GetType("System.String"));
            myTable.Columns.Add("PostNum", System.Type.GetType("System.String"));
            myTable.Columns.Add("Title", System.Type.GetType("System.String"));
            myTable.Columns.Add("Url", System.Type.GetType("System.String"));
            myTable.Columns.Add("Replies", System.Type.GetType("System.String"));
            myTable.Columns.Add("Views", System.Type.GetType("System.String"));
            myTable.Columns.Add("Forum", System.Type.GetType("System.String"));
            myTable.Columns.Add("PostId", System.Type.GetType("System.Int32"));
            return myTable;
        }
    }
}